function SiteLogEntryTests(name) {	
	this.uber = TestCase;
	this.uber(name);
	this.className = "SiteLogEntryTests";
}
SiteLogEntryTests.prototype = new TestCase;

SiteLogEntryTests.testing = function () { 
	return [ "file:///home/dafyddj/src/takecontrol/trunk/components/TakeControlService.js" ];
}

SiteLogEntryTests.prototype.setUp = function () {
	mySiteLogEntry = new SiteLogEntry();
}

SiteLogEntryTests.prototype.testSetSiteId = function () {
	mySiteLogEntry.siteId = "www.google.com";
    assertEquals("www.google.com", mySiteLogEntry.siteId);
}

SiteLogEntryTests.prototype.testInitialSiteId = function () {
	assertNull(mySiteLogEntry.siteId);
}

SiteLogEntryTests.prototype.testInitalDuration = function () {
	assertEquals(0, mySiteLogEntry.duration);
}

SiteLogEntryTests.prototype.testSetPositiveDuration = function () {
	mySiteLogEntry.duration = 66;
	assertEquals(66, mySiteLogEntry.duration);
}

SiteLogEntryTests.prototype.testSetNegativeDuration = function () {
	mySiteLogEntry.duration = -34;
	assertEquals("Time should not be set to negative", 0, mySiteLogEntry.duration);
}
